package com.example.dangdangbackend.mapper;

import com.example.dangdangbackend.VO.AddressDetailVO;
import com.example.dangdangbackend.entity.Address;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AddressMapper {

    /**
     * 插入地址信息
     * @param address
     */
    void insertIntoAddress(Address address);

    List<AddressDetailVO> selectAddressDetail(int userId);

    void deleteAddress(int addressId);

    void updateAddress(Address address);
}
